package model;

import java.util.ArrayList;
import java.util.List;

public class Exs {
	public static void main(String[] args) {
		List list = new ArrayList();//raw type
		
		list.add(1);
		list.add("abc");
		list.add(new Integer(2));
		
		Object obj = list.get(3);
		Integer num = (Integer) obj;//cast(ep kieu)
		
		List<Integer> list2 = new ArrayList<Integer>();
		
		list2.add(1);
		list2.add(new Integer(2));
		
		Integer n = list2.get(0);//no needs to cast
	}

}
